package tool

const (
	SUCCESS 	= 200
	ERROR 		= 500
)

var codeMsg = map[int]string {
	SUCCESS:               "成功",
	ERROR:                 "失败",
}

//返回错误信息
func GetErrorMsg(code int) string {
	return codeMsg[code]
}